package com.forenow.demo.Bank;
import java.util.Scanner;
public class goon {
    public static void go(){
        boolean flag = false;
        Scanner sc = new Scanner(System.in);
        System.out.println("是否继续操作（y/n）");
        String n = sc.next();
        switch (n){
            case "y":
            flag = true;
            break;
            case "n":
            System.exit(0);
            break;
            default:
                System.out.println("输入错误,请重新输入");
                goon.go();
        }

    }

}
